package net.fdukedom.epicurus.client.connection;

import java.rmi.RemoteException;

import net.fdukedom.epicurus.client.stub.EpicurusWSInterfacePort;

public class MessageServiceWrapper extends ServiceWrapper {
    /**
     * Gets xml string with information about installed plug-ins
     * @return xml string with information about installed plug-ins
     */
    public String sendMessage(String message) {
        EpicurusWSInterfacePort port = createPort();

        try {
            return port.invoke(message);
        } catch (RemoteException e) {
            e.printStackTrace();
        }

        return null;
    }
}
